/**
 * Created by Allan on 10/28/2016.
 */
define(function(require){

    var $ = require('jquery');

    function AuthDialog(){
        $('body').append('<div class="weui_dialog_confirm dialog-weui" style="display: none;height: 126px;" id="auth-dialog">' +
            '<div class="weui_mask"></div>' +
            '<div class="weui_dialog" style="height: 126px;">' +
            '<div class="weui_dialog_hd"><strong class="weui_dialog_title">您的会员信息尚未经过认证不能进行操作，请先去认证！</strong></div>' +
            '<div class="weui_dialog_ft">' +
            '<a href="#" id="cancel" class="weui_btn_dialog default">取消</a>' +
            '<a href="auth.html" class="weui_btn_dialog primary">去认证</a>' +
            '</div>' +
            '</div>' +
            '</div>')

        this.el = $('#auth-dialog');

        $('#cancel').click(function () {
            $('#auth-dialog').hide();
        });
    }

    AuthDialog.prototype = {
        show: function () {
            $(document.body).css('overflow', 'hidden');
            this.el.show();
        }
    };

    return AuthDialog;
});